package org.soenea.doitall.domain.model.invite;

import org.dsrg.soenea.domain.DomainObject;
import org.dsrg.soenea.domain.user.IUser;

import org.soenea.doitall.domain.model.group.IGroup;
import org.soenea.doitall.domain.model.person.IPerson;

public class Invite extends DomainObject<Long> implements IInvite {
	private IPerson inviter;
	private IPerson invited;
	private IGroup group;
	private InviteStatus status;
	
	public Invite(Long id, long version, IPerson inviter,IPerson invited, IGroup group, InviteStatus status) {
		super(id, version);
		this.group = group;
		this.status = status;
		this.inviter = inviter;
		this.invited = invited;
	}
	@Override
	public IGroup getGroup() {
		return this.group;
	}
	@Override
	public void setGroup(IGroup group) {
		this.group = group;
	}
	@Override
	public InviteStatus getStatus() {
		return this.status;
	}
	@Override
	public void setStatus(InviteStatus status) {
		this.status = status;
	}
	@Override
	public IPerson getInviter() {
		// TODO Auto-generated method stub
		return this.inviter;
	}
	@Override
	public void setInviter(IPerson inviter) {
		// TODO Auto-generated method stub
		this.inviter = inviter;
	}
	@Override
	public IPerson getInvited() {
		// TODO Auto-generated method stub
		return this.invited;
	}
	@Override
	public void setInvited(IPerson invited) {
		// TODO Auto-generated method stub
		this.invited = invited;
	}
}
